#ifndef __BOTTLINGPLANT_H__
#define __BOTTLINGPLANT_H__
//#include "nameserver.h"
#include "truck.h"
#include "printer.h"
#include "PRNG.h"
#include <cstdlib>

class Printer;
class NameServer;
extern PRNG prng;

class BottlingPlant {
  private:
    enum Flavours {Blues, Classical, Rock, Jazz};
    NameServer *nameServer;
    unsigned int numVendingMachines;
    unsigned int maxShippedPerFlavour;
    unsigned int maxStockPerFlavour;
    unsigned int timeBetweenShipments;
    unsigned int numStock[4];
    Truck *truck;
    Printer *prt;
   // PRNG prng;
   unsigned int productionline();
  public:
    BottlingPlant( Printer &prt, NameServer &nameServer, unsigned int numVendingMachines, unsigned int maxShippedPerFlavour, unsigned int maxStockPerFlavour, unsigned int timeBetweenShipments );
    ~BottlingPlant();
    void getShipment( unsigned int cargo[] );
    void action();
};

#endif